package com.gecba.system.entity;

import com.gecba.system.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author ChenBo
 * @className SysRole
 * @date 2021/7/25
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Entity
@Table(name = "sys_role")
@ApiModel(value = "系统角色")
@DynamicInsert
@DynamicUpdate
public class SysRole extends BaseEntity {
    /** 状态 */
    private Integer status;
    /** 角色名称 */
    private String roleName;
    /** 角色编码 */
    private String roleCode;
    /** 描述 */
    private String description;
}
